package com.gxa.service.impl;

import com.gxa.mapper.PatientBookMapper;
import com.gxa.service.PatientBookService;
import com.gxa.vo.PatientBookVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatientBookImpl implements PatientBookService {

    @Autowired
    private PatientBookMapper patientBookMapper;

    @Override
    public List<PatientBookVo> selectByPatientCard(String phone) {
        List<PatientBookVo> list = this.patientBookMapper.selectByPatientCard(phone);
        return list;
    }

    @Override
    public void updateStatus(Integer id) {
        this.patientBookMapper.updateStatus(id);
    }
}
